package com.user.service;

import com.wukc.springcloud.domain.user.Role;
import com.wukc.springcloud.domain.user.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: wukc
 * @Description: TODO
 * @DateTime: 2022/9/1 14:46
 **/
public interface UserService {
    public int createUser(User payment);

    public User getUserById(@Param("id") Long id);

    public User getUserByName(@Param("userName") String userName);

    public User loadUserByUsername(String userName);

    public List<Role> getUserRolesByUid(Integer id);
}
